]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
polkitAgent: Fix closing dialog properly
authorJoan Torres <joan.torres@suse.com>
Tue, 9 May 2023 16:36:40 +0000 (18:36 +0200)
committerJoan Torres <joan.torres@suse.com>
Tue, 9 May 2023 17:27:54 +0000 (19:27 +0200)
When pressing the close button on the dialog the polkit request isn't
completed leaving the polkit agent blocked unable to handle new
requests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2761>

js/ui/components/polkitAgent.js

index 74b89090c08291b6ad68acf76d042701209ee2a0..1da02e5b4dfcf48aac46c1f17828ef63c0a31b54 100644 (file)
@@ -391,7 +391,6 @@ var AuthenticationDialog = GObject.registerClass({
     }
 
     cancel() {
-        this.close(global.get_current_time());
         this._emitDone(true);
     }